home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / strings.z / strings
Encoding:
Text File  |  2002-10-03  |  3.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ssssttttrrrriiiinnnnggggssss((((1111))))                                                          ssssttttrrrriiiinnnnggggssss((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss - find printable strings in an object file or binary
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss [ _----_aaaa ] [ _----_oooo ] [ -_n_u_m_b_e_r ] _f_i_l_e_n_a_m_e . . .
  13.  
  14.      or the XPG4 format
  15.  
  16.      _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss [ _----_aaaa ] [ _----_tttt _f_o_r_m_a_t ] [ _----_nnnn _n_u_m_b_e_r ] _f_i_l_e_n_a_m_e . . .
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      The _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss command looks for ASCII strings in a binary file.  A string
  20.      is any sequence of 4 or more printing characters ending with a newline or
  21.      a null character, or (if not in XPG4 mode) any non-printing character.
  22.  
  23.      _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss is useful for identifying random object files and many other
  24.      things.
  25.  
  26.      The following options are available:
  27.  
  28.      _----_aaaa          Look everywhere in the file for strings.  If this flag is
  29.                  omitted, _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss only looks in the initialized data space of
  30.                  object files.
  31.  
  32.      _----_oooo          Precede each string by its offset in the file.
  33.  
  34.      _----_n_u_m_b_e_r     Use _n_u_m_b_e_r as the minimum string length rather than 4.
  35.  
  36.      The following are the options for the XPG4 command-line format:
  37.  
  38.      _----_aaaa          Look everywhere in the file for strings.  If this flag is
  39.                  omitted, _ssss_tttt_rrrr_iiii_nnnn_gggg_ssss only looks in the initialized data space of
  40.                  object files.
  41.  
  42.      _----_tttt _f_o_r_m_a_t   Precede each string by its offset in the file. The format is
  43.                  specified by the _f_o_r_m_a_t argument:
  44.                  _dddd Print the offset in decimal.
  45.                  _oooo Print the offset in octal.
  46.                  _xxxx Print the offset in hexadecimal.
  47.  
  48.      _----_nnnn _n_u_m_b_e_r   Use _n_u_m_b_e_r as the minimum string length rather than 4.
  49.  
  50. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  51.      _oooo_dddd(1)
  52.  
  53. NNNNOOOOTTTTEEEESSSS
  54.      The algorithm for identifying strings is extremely primitive.
  55.  
  56.      For the IRIX 6.5 release, this command was changed to have slightly
  57.      different semantics than the original command, to be XPG4-compliant.  The
  58.      XPG4 semantics are that a string is only considered to be a valid string
  59.      if it ends with a NULL or newline character, or ends at the end of a
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssttttrrrriiiinnnnggggssss((((1111))))                                                          ssssttttrrrriiiinnnnggggssss((((1111))))
  71.  
  72.  
  73.  
  74.      file.  The original semantics were that a string could be ended by any
  75.      non-printing character, or end of file.
  76.  
  77.      As of the 6.5.4 release, the default semantics have been returned to the
  78.      original unix semantics, unless the ____XXXXPPPPGGGG environment variable is set to a
  79.      value greater than zero, in which case the XPG4 semantics are used.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.